ADP\BaseVersion\Includes\WC\WcCartItemFacade D

Total Complexity 166
Dependencies 13
Dependents 54
Total lines 1,212
Lines of code 509
Logical lines of code 229
Comment lines 343
Methods 91
Properties 34

Methods 91

Method Rating Maintainability Complexity Lines of code
__construct()
C
36 29 63
generateCartId()
A
51 11 25
addAttribute()
S
58 5 18
sanitize()
S
51 4 27
createFromProduct()
S
49 3 33
getDiscounts()
S
61 4 13
removeAttribute()
S
62 4 11
getHistory()
S
64 3 10
createItem()
S
64 3 10
getOurData()
S
55 1 22
getClearData()
S
59 1 16
getRegularPriceWithoutTax()
S
78 2 3
isImmutable()
S
78 2 3
getExactSubtotalTax()
S
74 2 4
isRecommendedAutoAddItem()
S
78 2 3
getOriginalPriceTax()
S
78 2 3
getOriginalPriceWithoutTax()
S
78 2 3
getRegularPriceTax()
S
78 2 3
setCurrency()
S
74 2 5
packCurrencyObject()
S
65 2 10
unpackCurrencyObject()
S
69 2 6
isAutoAddItem()
S
78 2 3
getOriginalPrice()
S
78 2 3
setAutoAddCartItemHash()
S
74 2 5
setInitialCustomPrice()
S
78 2 3
setFreeCartItemHash()
S
74 2 5
getInitialCustomPrice()
S
78 2 3
wcGetCartItemDataHash()
S
69 2 6
isFreeItem()
S
78 2 3
getPriceAdjustments()
S
82 1 3
setAutoAddCanBeRemoved()
S
81 1 3
setPriceAdjustments()
S
81 1 3
autoAddCanBeRemoved()
S
82 1 3
isSelectedFreeCartItem()
S
82 1 3
setSelectedFreeCartItem()
S
81 1 3
getAutoAddCartItemHash()
S
82 1 3
getFreeCartItemHash()
S
82 1 3
getAssociatedHash()
S
82 1 3
isBasicType()
S
80 1 3
setContainerType()
S
81 1 3
isContainerType()
S
80 1 3
getParentContainerPriceType()
S
79 1 3
__clone()
S
81 1 3
isAffected()
S
80 1 3
isContaineredPricedIndividually()
S
79 1 3
setContaineredPricedIndividually()
S
80 1 3
getParentContainerCartItemHash()
S
79 1 3
setParentContainerCartItemHash()
S
80 1 3
setParentContainerPriceType()
S
80 1 3
isContaineredType()
S
80 1 3
getContainerChildrenHashes()
S
80 1 3
setContainerChildrenHashes()
S
80 1 3
getContainerPriceType()
S
79 1 3
setContainerPriceType()
S
80 1 3
setContaineredType()
S
81 1 3
setBasicType()
S
81 1 3
setAssociatedHash()
S
80 1 3
setQty()
S
80 1 3
getCurrency()
S
82 1 3
setHistory()
S
91 1 2
setKey()
S
81 1 3
getProductId()
S
82 1 3
getVariationId()
S
82 1 3
getVariation()
S
82 1 3
getThirdPartyData()
S
82 1 3
setThirdPartyData()
S
80 1 3
deleteThirdPartyData()
S
80 1 3
getCartItemData()
S
73 1 5
setOriginalKey()
S
81 1 3
getOriginalKey()
S
82 1 3
isClone()
S
80 1 3
getSubtotal()
S
82 1 3
getSubtotalTax()
S
82 1 3
getQty()
S
82 1 3
getProduct()
S
82 1 3
getReplaceCouponCode()
S
82 1 3
setDiscounts()
S
91 1 2
setOriginalPriceWithoutTax()
S
79 1 3
setOriginalPrice()
S
79 1 3
setOriginalPriceTax()
S
79 1 3
setRegularPriceWithoutTax()
S
79 1 3
withContext()
S
81 1 3
setRegularPriceTax()
S
79 1 3
getData()
S
79 1 3
getKey()
S
82 1 3
getNewPrice()
S
82 1 3
isVisible()
S
82 1 3
setReplaceWithCoupon()
S
80 1 3
getReplaceWithCoupon()
S
80 1 3
setReplaceCouponCode()
S
80 1 3
setNewPrice()
S
76 1 4